package com.hdu.xxlJobLocalCacheFix;


import com.hdu.xxlJobLocalCacheFix.aspect.XxlJobAspect;
import com.hdu.xxlJobLocalCacheFix.holder.ApplicationContextHolder;
import com.hdu.xxlJobLocalCacheFix.job.LocalCacheFixJob;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class XllJobLocalCacheFixAutoConfiguration {
    @Bean
    public ApplicationContextHolder applicationContextHolder() {
        return new ApplicationContextHolder();
    }
    @Bean
    public LocalCacheFixJob localCacheFixJob() {
        return new LocalCacheFixJob();
    }
    @Bean
    public XxlJobAspect xxlJobAspect() {
        return new XxlJobAspect();
    }

}
